/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meteocal.entities;

/**
 *
 * @author Luigi
 */
public class User {
    private String username;
    private String password;
    private String email;
    private String name;
    private String surname;

    
    public User(String username, String password){
        this.username=username;
        this.password=password;
        this.email = null;
        this.name = "Mario";
        this.surname = "Rossi";
    }
    
    @Override
    public String toString(){
        return "Nome: "+this.name+" Cognome: "+this.surname+" email "+
                this.email+" username: "+this.username+" password: "+this.password;
    }
    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }
}
